home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / loader / initrd / initrd 32493 / etc / udev / rules.d / 50-udev-default.rules < prev    next >
Text File  |  2006-11-29  |  6KB  |  138 lines

  1. # console
  2. KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
  3. KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="666", OPTIONS="last_rule"
  4. KERNEL=="vcs*",            GROUP="tty", MODE="620", OPTIONS="last_rule"
  5. KERNEL=="vcsa*",        GROUP="tty", MODE="620", OPTIONS="last_rule"
  6. KERNEL=="tty",            GROUP="tty", MODE="666", OPTIONS="last_rule"
  7. KERNEL=="tty[0-9]*",        GROUP="tty", MODE="620", OPTIONS="last_rule"
  8. KERNEL=="console",        MODE="600", OPTIONS="last_rule"
  9. KERNEL=="ptmx",            GROUP="tty", MODE="666", OPTIONS="last_rule"
  10.  
  11. # serial devices
  12. KERNEL=="tty[A-Z]*|pppox*|ircomm*|noz*", GROUP="uucp"
  13. KERNEL=="hvc*|hvsi*",        GROUP="uucp"
  14. KERNEL=="iseries/vtty*",    GROUP="uucp"
  15. KERNEL=="mwave",        NAME="modems/%k", GROUP="uucp"
  16. KERNEL=="ttyUSB*", ATTRS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
  17. KERNEL=="ttyUSB*", ATTRS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*", SYMLINK+="pilot"
  18.  
  19. # video/graphics
  20. SUBSYSTEM=="video4linux",    GROUP="video"
  21. SUBSYSTEM=="graphics"        GROUP="video"
  22. KERNEL=="vtx*|vbi*",        GROUP="video"
  23. KERNEL=="winradio*",        GROUP="video"
  24. KERNEL=="vttuner*",        GROUP="video"
  25. KERNEL=="nvidia*|nvidiactl*",    GROUP="video"
  26. KERNEL=="video0",        SYMLINK+="video"
  27. KERNEL=="radio0",        SYMLINK+="radio"
  28. KERNEL=="vbi0",            SYMLINK+="vbi"
  29. KERNEL=="pmu",            GROUP="video"
  30.  
  31. # dvb
  32. SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
  33.  
  34. # input devices
  35. KERNEL=="mouse*|mice",        NAME="input/%k", MODE="0640"
  36. KERNEL=="event*",        NAME="input/%k", MODE="0640"
  37. KERNEL=="js*",            NAME="input/%k", MODE="0644"
  38. KERNEL=="ts*",            NAME="input/%k", MODE="0600"
  39. KERNEL=="uinput",        NAME="input/%k", MODE="0600"
  40. KERNEL=="lirc0",        SYMLINK+="lirc"
  41.  
  42. # printer
  43. SUBSYSTEM=="usb",        KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
  44. SUBSYSTEM=="printer",        KERNEL=="lp*", GROUP="lp"
  45. KERNEL=="irlpt*",        GROUP="lp"
  46.  
  47. # cpu devices
  48. KERNEL=="cpu[0-9]*",        NAME="cpu/%n/cpuid"
  49. KERNEL=="msr[0-9]*",        NAME="cpu/%n/msr"
  50. KERNEL=="microcode",        NAME="cpu/microcode", MODE="0600"
  51.  
  52. # IEEE1394 devices
  53. KERNEL=="raw1394*",        GROUP="video"
  54. KERNEL=="dv1394*",        SYMLINK+="dv1394/%n", GROUP="video"
  55. KERNEL=="video1394*",        SYMLINK+="video1394/%n", GROUP="video"
  56.  
  57. KERNEL=="hw_random",        NAME="hwrng", SYMLINK+="%k"
  58. KERNEL=="rioctl",        NAME="specialix_rioctl", SYMLINK+="%k"
  59. KERNEL=="sxctl",        NAME="specialix_sxctl", SYMLINK+="%k"
  60.  
  61. # network
  62. KERNEL=="tun",            NAME="net/%k", MODE="0666"
  63.  
  64. # misc devices
  65. KERNEL=="mem|kmem",        GROUP="kmem", MODE="640"
  66. KERNEL=="port",            GROUP="kmem", MODE="640"
  67. KERNEL=="nvram",        GROUP="kmem", MODE="600"
  68. KERNEL=="null",            MODE="666"
  69. KERNEL=="zero",            MODE="666"
  70. KERNEL=="full",            MODE="622"
  71. KERNEL=="random",        MODE="666"
  72. KERNEL=="urandom",        MODE="644"
  73. KERNEL=="rtc",            MODE="600"
  74. KERNEL=="sonypi",        MODE="0666"
  75. KERNEL=="agpgart",        MODE="0600", GROUP="video"
  76. KERNEL=="djs*",            MODE="644"
  77. KERNEL=="sgi_*",        MODE="666"
  78. KERNEL=="rrom*",        MODE="400"
  79. KERNEL=="rflash*",        MODE="400"
  80. KERNEL=="usbscanner*",        MODE="644"
  81. KERNEL=="3270/ttycons*",    MODE="600"
  82. KERNEL=="3270/tub*",        MODE="666"
  83. KERNEL=="3270/tubcons*",    MODE="600"
  84. KERNEL=="ica",            MODE="666"
  85. KERNEL=="z90crypt",        MODE="666"
  86. KERNEL=="mmtimer",        MODE="644"
  87. KERNEL=="auer[0-9]*"        NAME="usb/%k"
  88.  
  89. # packet writing interface
  90. KERNEL=="pktcdvd",        NAME="pktcdvd/control"
  91. KERNEL=="pktcdvd[0-9]*",    NAME="pktcdvd/%k"
  92.  
  93. # fix floppy devices
  94. KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh"
  95. KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M $root/%k"
  96. KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
  97.  
  98. # block devices
  99. SUBSYSTEM=="block", GROUP="disk", MODE="0640"
  100.  
  101. # sd:        0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
  102. # sr:        4 TYPE_WORM, 5 TYPE_ROM
  103. # st/osst:    1 TYPE_TAPE
  104. SUBSYSTEM=="scsi", ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
  105. SUBSYSTEM=="scsi", ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"
  106. SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
  107. SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="1", ATTR{vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
  108. SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="1", RUN+="/sbin/modprobe st"
  109. SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
  110. SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
  111. KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
  112. SUBSYSTEM=="ide", ACTION=="add", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
  113. SUBSYSTEM=="mmc", ACTION=="add", RUN+="/sbin/modprobe mmc_block"
  114.  
  115. # misc storage devices (non-block)
  116. KERNEL=="sg*",            GROUP="disk", MODE="640"
  117. KERNEL=="st*|nst*",        GROUP="disk"
  118. KERNEL=="qft*|nqft*|zqft*|nzqft*|rawqft*|nrawqft", GROUP="disk"
  119. KERNEL=="ht*|nht*",        GROUP="disk"
  120. KERNEL=="pf*",            GROUP="disk"
  121. KERNEL=="sch*",            GROUP="disk"
  122. KERNEL=="pt*|npt*",        GROUP="disk"
  123. KERNEL=="pg*",            GROUP="disk"
  124. KERNEL=="evms/block_device*",    GROUP="disk"
  125. KERNEL=="rawctl*",        NAME="raw/%k", GROUP="disk"
  126. SUBSYSTEM=="block", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
  127. KERNEL=="osst*|nosst*",        NAME="%k", GROUP="disk"
  128. KERNEL=="iseries/vt*",        NAME="%k", GROUP="disk"
  129. KERNEL=="iseries/nvt*",        NAME="%k", GROUP="disk"
  130. KERNEL=="iseries/ibmsis*",    NAME="%k", GROUP="disk"
  131.  
  132. # libusb device access
  133. SUBSYSTEM=="usb_device", ACTION=="add", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
  134.  
  135. # kernel firmware loader
  136. SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
  137.  
  138.